import request from '@/utils/request'

// 查询作业指导书管理列表
export function listNcWorkInstructionManagement(query) {
  return request({
    url: '/business/NcWorkInstructionManagement/list',
    method: 'get',
    params: query
  })
}

// 查询作业指导书管理详细
export function getNcWorkInstructionManagement(id) {
  return request({
    url: '/business/NcWorkInstructionManagement/' + id,
    method: 'get'
  })
}

// 新增作业指导书管理
export function addNcWorkInstructionManagement(data) {
  return request({
    url: '/business/NcWorkInstructionManagement',
    method: 'post',
    data: data
  })
}

// 修改作业指导书管理
export function updateNcWorkInstructionManagement(data) {
  return request({
    url: '/business/NcWorkInstructionManagement',
    method: 'put',
    data: data
  })
}

// 删除作业指导书管理
export function delNcWorkInstructionManagement(id) {
  return request({
    url: '/business/NcWorkInstructionManagement/' + id,
    method: 'delete'
  })
}
